package com.woniuxy.service.impl;
import com.woniuxy.dao.RbacMenuDao;
import com.woniuxy.entity.RbacMenu;
import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.RbacMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: java-85-course-code
 * @BelongsPackage: com.woniuxy.service.impl
 * @Author: LiTongMiao
 * @Date: 2022/2/28 22:50
 * @Description: TODO
 */
public class RbacMenuServiceImpl implements RbacMenuService {
    @Autowired
    RbacMenuDao rbacMenuDao;
    @Override
    public ResponseEntity findAll() {
        List<RbacMenu> rbacMenuList = rbacMenuDao.findAll();
        return new ResponseEntity<List>(200,"菜单查询成功！",rbacMenuList);
    }

    @Override
    public ResponseEntity updateMenu(int fid, int id) {
        return null;
    }

    @Override
    public ResponseEntity updateOne(RbacMenu rbacMenu) {
        return null;
    }
}
